//游戏结束视频翻扑克牌
let mongoose = require('mongoose');
let Common=require('../../util/common');
module.exports={
    open:async function(options){
        let result=Common.weightRandom([
                {type:2,count:50,weight:35},
                {type:1,count:10,weight:35},
                {type:101,count:2,weight:15},
                {type:2,count:100,weight:5},
                {type:1,count:20,weight:5},
                {type:2,count:200,weight:2},
                {type:2,count:300,weight:2},
                {type:2,count:500,weight:1}
            ]);
        let result2=Common.weightRandom([
            {type:2,count:50,weight:2},
            {type:1,count:10,weight:2},
            {type:101,count:2,weight:5},
            {type:2,count:100,weight:15},
            {type:1,count:20,weight:15},
            {type:2,count:200,weight:20},
            {type:2,count:300,weight:20},
            {type:2,count:500,weight:30},
            {type:303,count:500,weight:40},
            {type:403,count:500,weight:40}
        ]);
        let result3=Common.weightRandom([
            {type:2,count:50,weight:2},
            {type:1,count:10,weight:2},
            {type:101,count:2,weight:5},
            {type:2,count:100,weight:15},
            {type:1,count:20,weight:15},
            {type:2,count:200,weight:20},
            {type:2,count:300,weight:20},
            {type:2,count:500,weight:30},
            {type:303,count:500,weight:40},
            {type:403,count:500,weight:40}
        ]);
        options.self.getGoods([result]);
        return [result,result2,result3];
    }
};